﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using MobileSales.Model.Localization;
using MobileSales.Model.Util;

namespace MobileSales.Website.Models
{
    public class DocumentModel
    {
        public int OrderId { get; set; }
        [Display(Name = "DocumentType", ResourceType = typeof(ModelStrings))]
        public int DocumentTypeId { get; set; }
        [Display(Name = "DocumentNo", ResourceType = typeof(ModelStrings))]
        [RegularExpression(RegExp.IntegerRegexp, ErrorMessageResourceName = "InvalidInteger", ErrorMessageResourceType = typeof(ValidationStrings))]
        public int DocumentNo { get; set; }
        [Display(Name = "PaymentMethod", ResourceType = typeof(ModelStrings))]
        public int PaymentMethodId { get; set; }
        [Display(Name = "PaymentDate", ResourceType = typeof(ModelStrings))]
        public DateTime PaymentDate { get; set; }
        [Display(Name = "IsPaid", ResourceType = typeof(ModelStrings))]
        public bool IsPaid { get; set; }
    }
}